#include <string.h>
#include <iostream>

using namespace std;

int main()
{
    string text;
    char a;
    cout<<"vvedi your text :";
    cin>>text;
    getline(cin,text);
    text=text+' ';
    int len=text.length();
    int k=0;
    for(int i=0;i<len;i++)
        if (text[i]!=' ' and text[i+1]==' ')
        k++;

    if (k<=1)
    {
        cout<<"little data dle analyze  "<<endl;
    }
    else
        {
        cout<<"Kolichestvo slov:"<<k+1<<endl;


        int to=0;
        int r=0;
        for(int i=0;i<len;i++)
        {
            if (text[i]!=' ')
                {
                r++;
                }
            if (text[i]==' ')
                {
                if (r<=3)
                    number+=1;
                r=0;
                }
        }
        cout<<"Kolichestvo slov ne bolshe 3 simvolov:"<<number<<endl;

        k=0;
        int flag=0;
        for(int i=0;i<len;i++)
        {
            if (text[i]!=' ')
                {
                if (text[i]=='-' )
                    flag=1;
                }
            if (text[i]==' ')
                {
                if (flag==1)
                    k++;
                flag=0;
                }
        }
        cout<<"Kolichestvo slov s defisom: "<<k<<endl;


        }


}